#include <arch.h>
#include <conio.h>
#include <context.h>

/* info about system */
sysinfo_t sys;

/* todo: change func! */
/* kill current thread! */
void arch_panic(const char *msg) 
{
    kprintf("Kernel panic: %s\n", msg);
    asm("cli");
    asm("hlt");
}

multiboot_info_t *arch_getmbi(void)
{
    return (sys.mbi);
}

void cpu_idle()
{
    asm("sti");
    asm("hlt");
}